/*
* Copyright (c) 2016 . All Rights Reserved.
*/
package com.cgmnx.admin.service.sys;

import java.io.IOException;
import java.io.InputStream;

/**
 * 文件操作Service
 *
 * @author: created  Date: 16/12/20 Time: 下午2:26
 * @version: 1.0
 */
public interface FileUploadService {

    String upload(String key, byte[] bytes);

    /**
     * @param originalFileName
     * @param inputStream
     * @return 返回的上传路径
     */
    String upload(String originalFileName, InputStream inputStream) throws IOException;

    InputStream download(String location);

}